package com.udima.reglocation;

import com.udima.reglocation.entities.Configuration;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class MainActivity extends Activity {

	private TextView lblGotoRegister;
	private TextView lblGotoLogin;
	public static Configuration config = new Configuration();
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

        lblGotoLogin = (TextView) findViewById(R.id.link_to_login);
        lblGotoLogin.setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		Intent itemintent = new Intent(MainActivity.this, LoginActivity.class);
        		MainActivity.this.startActivity(itemintent);
        	}
        });
		
        lblGotoRegister = (TextView) findViewById(R.id.gps_status);
        lblGotoRegister.setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		Intent itemintent = new Intent(MainActivity.this, RegisterActivity.class);
        		MainActivity.this.startActivity(itemintent);
        	}
        });
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
     